package com.yunban.project.template.model.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * @author 63231
 */
@Data
@Schema(description = "模板组入参")
public class TemplateGroupReq implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    @Schema(description = "模板组名称")
    @NotBlank(message = "模板组名称{name}不能为空")
    private String name;
    @Schema(description = "示意图")
    private String img;
    @Schema(description = "预览HTML")
    private String html;
    @NotNull(message = "风格ids {styleIds} 不能为空")
    private List<Long> styleIds;
//    @NotNull(message = "模板ids {templateIds} 不能为空")
//    private List<Long> templateIds;
}
